package com.cskaoyan.service;

import com.cskaoyan.bean.entity.WxAbout;
import com.cskaoyan.bean.entity.WxAboutExample;
import com.cskaoyan.mapper.WxAboutMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class WxHomeServiceImpl  implements WxHomeService{

    @Autowired
    WxAboutMapper wxAboutMapper;

    /**
     *  小程序关于
     *
     * @return
     */
    @Override
    public WxAbout selectAbout() {
        WxAboutExample wxAboutExample = new WxAboutExample();
        List<WxAbout> wxAboutList = wxAboutMapper.selectByExample(wxAboutExample);
        return wxAboutList.get(0);
    }
}
